/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.webapp.dao;

import java.util.List;
import vn.webapp.dto.DataPage;
import vn.webapp.model.BusyTeachers;
import vn.webapp.model.Teachers;
import vn.webapp.model.TeachersToBusy;

public interface TeachersDAO {

    /**
     *
     * @return
     */
    public List<Teachers> list();
    
    public Teachers viewDetail(String id);
    
    public Teachers checkExistsEmail(String email, int id);
    
    public int updateTheTeacher(String name, String email, int id);
    
    public int removeTeacher(int id);
    
    public int saveATeacher(Teachers teachers);
    
    public int count();
    
    public List<Teachers> filter(int page, int pageSize);
    
    public List<BusyTeachers> getABusyTeacherByTeacherId(int iTeacherId, int iSessionId, int Day);
    
    public int editBusyTeacherByTeacherId(BusyTeachers oBusyTeacher);
    
    //public BusyTeachers checkExistsBusyTeacher(int iTeacherId, int iSessionId, int iDayId);
    
    public int removeBusyTeacher(int iBusyTeacherId );
    
    public List<BusyTeachers> listAllBusyTeachers();
    
    /**
     *
     * @return
     */
    public List<TeachersToBusy> getAllTeachersToBusy();
}
